import store from '@/store'

/**
 * @param {string} value
 * @returns {Boolean}
 * @example see @/views/permission/directive.vue
 */
export function checkPermission(value) {
  const actions = store.getters && store.getters.actions
  return actions.includes(value)
}
